package de.lulusoft.anothertorrent.core.rtorrent;

public class File {
	
	private Long completed_chunks;
	private String frozen_path;
	private Long created;
	private Long open;
	private Long last_touched;
	private Long match_depth_next;
	private Long match_depth_prev;
	private Long offset;
	private String path;
	private String path_components;
	private Long path_depth;
	private Long priority;
	private Long rage_first;
	private Long range_second;
	private Long size_bytes;
	private Long size_chunks;
	
	public File(Long completed_chunks, String frozen_path, Long created,
			Long open, Long last_touched, Long match_depth_next,
			Long match_depth_prev, Long offset, String path,
			String path_components, Long path_depth, Long priority,
			Long rage_first, Long range_second, Long size_bytes,
			Long size_chunks) {
		super();
		this.completed_chunks = completed_chunks;
		this.frozen_path = frozen_path;
		this.created = created;
		this.open = open;
		this.last_touched = last_touched;
		this.match_depth_next = match_depth_next;
		this.match_depth_prev = match_depth_prev;
		this.offset = offset;
		this.path = path;
		this.path_components = path_components;
		this.path_depth = path_depth;
		this.priority = priority;
		this.rage_first = rage_first;
		this.range_second = range_second;
		this.size_bytes = size_bytes;
		this.size_chunks = size_chunks;
	}

	public Long getCompleted_chunks() {
		return completed_chunks;
	}

	public void setCompleted_chunks(Long completed_chunks) {
		this.completed_chunks = completed_chunks;
	}

	public String getFrozen_path() {
		return frozen_path;
	}

	public void setFrozen_path(String frozen_path) {
		this.frozen_path = frozen_path;
	}

	public Long getCreated() {
		return created;
	}

	public void setCreated(Long created) {
		this.created = created;
	}

	public Long getOpen() {
		return open;
	}

	public void setOpen(Long open) {
		this.open = open;
	}

	public Long getLast_touched() {
		return last_touched;
	}

	public void setLast_touched(Long last_touched) {
		this.last_touched = last_touched;
	}

	public Long getMatch_depth_next() {
		return match_depth_next;
	}

	public void setMatch_depth_next(Long match_depth_next) {
		this.match_depth_next = match_depth_next;
	}

	public Long getMatch_depth_prev() {
		return match_depth_prev;
	}

	public void setMatch_depth_prev(Long match_depth_prev) {
		this.match_depth_prev = match_depth_prev;
	}

	public Long getOffset() {
		return offset;
	}

	public void setOffset(Long offset) {
		this.offset = offset;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getPath_components() {
		return path_components;
	}

	public void setPath_components(String path_components) {
		this.path_components = path_components;
	}

	public Long getPath_depth() {
		return path_depth;
	}

	public void setPath_depth(Long path_depth) {
		this.path_depth = path_depth;
	}

	public Long getPriority() {
		return priority;
	}

	public void setPriority(Long priority) {
		this.priority = priority;
	}

	public Long getRage_first() {
		return rage_first;
	}

	public void setRage_first(Long rage_first) {
		this.rage_first = rage_first;
	}

	public Long getRange_second() {
		return range_second;
	}

	public void setRange_second(Long range_second) {
		this.range_second = range_second;
	}

	public Long getSize_bytes() {
		return size_bytes;
	}

	public void setSize_bytes(Long size_bytes) {
		this.size_bytes = size_bytes;
	}

	public Long getSize_chunks() {
		return size_chunks;
	}

	public void setSize_chunks(Long size_chunks) {
		this.size_chunks = size_chunks;
	}
	
	public Integer getDonePercent()
	{
		Double d = (double)this.completed_chunks / (double)this.size_chunks * (double)100;
		return ((Double)Math.floor(d)).intValue();
	}
	
	
}
